package com.jtcoding.chat.service;

import com.jtcoding.chat.model.FastDFSResource;
import com.jtcoding.chat.model.ResourceLog;
import com.jtcoding.chat.model.Result;
import org.csource.common.MyException;

import java.io.IOException;
import java.util.List;

/**
 * @author jason.tang
 * @create 2019-01-25 15:23
 * @description 文件服务业务层
 */
public interface ResourceService {

    public static final String[] PIC_EXC = new String[]{"jpg", "jpeg", "bmp", "png", "gif"};

    ResourceLog uploadResource(FastDFSResource resource) throws IOException, MyException;

    Boolean deleteResource(String groupName, String remoteFileName) throws IOException, MyException;

    List<ResourceLog> getHistoryResource(Integer refNum, String resType);
}
